home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global g1erSprLoc, gMaxBoutons, gNumSpr
- curseur(2)
- repeat with i = g1erSprLoc + 3 to gMaxBoutons
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- end
-
- on mouseUp
- global g1erSprLoc, gMaxBoutons, gNumSpr, gSurvolPrec
- curseur(1)
- set monNumSpr to -2
- repeat with i = g1erSprLoc + 3 to gMaxBoutons
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if monNumSpr = gNumSpr then
- put ">>" && gNumSpr
- if gNumSpr = 25 then
- MouseClick(gNumSpr - 23)
- else
- beep()
- set gSurvolPrec to -1
- end if
- else
- pass()
- end if
- end
-
- on MouseClick monSpr
- global gCDpath, gPage, gMaxBoutons, g1erSprLoc, gSurvolPrec, gLocLabel, gSensTrans, gVersion
- set gPage to monSpr
- set the fileName of cast "FICHE TH" to gVersion & "PT" & gPage & ".PIC"
- go(the frame)
- set the visible of sprite 44 to 1
- set the visible of sprite g1erSprLoc to 1
- set the visible of sprite (g1erSprLoc + 1) to 1
- if gPage <> 14 then
- set the visible of sprite (g1erSprLoc + 2) to 1
- else
- set the visible of sprite (g1erSprLoc + 2) to 0
- end if
- repeat with i = g1erSprLoc + 3 to gMaxBoutons
- set the visible of sprite i to 0
- end repeat
- go(the frame)
- set gLocLabel to "TH:RN2"
- set gSensTrans to 1
- set gSurvolPrec to -1
- curseur(-1)
- end
-